public class Stopwatch {
    long startTime;
    long endTime;
    Stopwatch(){
        startTime = System.currentTimeMillis();
    }
    void start(){
        startTime = System.currentTimeMillis();
    }
    void end(){
        endTime = System.currentTimeMillis();
    }
    void getElapsedTime(){
        System.out.println(endTime - startTime);
    }
}
